/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hu.rsc.feeds.client.data;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * 
 * @author arbuckle
 */
public class Entry implements IsSerializable {

    private String title;
    private String description;
    private String htmlDescription;
    private String link;
    private String source;
    private Date date;

    public Entry() {
    }

    @Override
    public boolean equals(Object obj) {
	if (this == obj) {
	    return true;
	}
	if (obj == null) {
	    return false;
	}
	if (getClass() != obj.getClass()) {
	    return false;
	}
	Entry other = (Entry) obj;
	if (this.title == null) {
	    if (other.title != null) {
		return false;
	    }
	} else if (!this.title.equals(other.title)) {
	    return false;
	}
	return true;
    }

    public Date getDate() {
	return this.date;
    }

    public String getDescription() {
	return this.description;
    }

    public String getHtmlDescription() {
	return this.htmlDescription;
    }

    public String getLink() {
	return this.link;
    }

    public String getSource() {
	return this.source;
    }

    public String getTitle() {
	return this.title;
    }

    @Override
    public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((this.title == null) ? 0 : this.title.hashCode());
	return result;
    }

    public void setDate(Date date) {
	this.date = date;
    }

    public void setDescription(String desription) {
	this.description = desription;
    }

    public void setHtmlDescription(String htmlDescription) {
	this.htmlDescription = htmlDescription;
    }

    public void setLink(String link) {
	this.link = link;
    }

    public void setSource(String source) {
	this.source = source;
    }

    public void setTitle(String v) {
	this.title = v;
    }

}